package com.byxy.service.impl;

import com.byxy.mapper.FocusMapper;
import com.byxy.po.Focus;
import com.byxy.service.FocusService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class FocusServiceImpl implements FocusService<Focus> {


    @Resource
    private FocusMapper focusMapper;

    @Override
    public int deleteByPrimaryKey(Focus key) {
        return focusMapper.deleteByPrimaryKey(key);
    }

    @Override
    public int insert(Focus record) {
        return focusMapper.insert(record);
    }

    @Override
    public int insertSelective(Focus record) {
        return focusMapper.insertSelective(record);
    }

    @Override
    public Focus selectOne(Focus record) {
        return focusMapper.selectOne(record);
    }

    @Override
    public int updateByPrimaryKey(Focus record) {
        return focusMapper.updateByPrimaryKey(record);
    }
}
